//package com.wanxi.dao.impl;
//
//import com.wanxi.model.NewsTime;
//import com.wanxi.util.JDBC;
//import org.aspectj.lang.ProceedingJoinPoint;
//
///**
// * @author 杨金乾
// */
//public class Proxy {
//    public int around(ProceedingJoinPoint proceedingJoinPoint) {
//        String methodName = proceedingJoinPoint.getSignature().getName();
//        System.out.println(methodName + " is run....");
//        long start = System.currentTimeMillis();
//        int rows = -1;
//        try {
//           rows = (int)proceedingJoinPoint.proceed();
//        } catch (Throwable e) {
//            throw new RuntimeException(e);
//        }
//        long end = System.currentTimeMillis();
//        long time=end-start;
//        System.out.println(methodName + " is end....");
//        NewsTime newsTime=new NewsTime();
//        String add="insert into news_dao_proxy(`"+methodName.toLowerCase()+"`) value ('"+time+"')";
//        JDBC.update(add);
//        return rows;
//    }
//}
